-- GENERATED SPELL FOR [Deeprot Stomper] --


function spell0_13141(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(13446,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13141', 612, 1)
end

function spell1_13141(pUnit, Event) --@War Stomp,Self--
pUnit:FullCastSpellOnTarget(11876,pUnit)
pUnit:RegisterEvent('Sorts_13141', 5270, 1)
end

function Sorts_13141(pUnit, Event)
local choix_sorts_13141 = math.random(0, 1)
if choix_sorts_13141 == 0 then
pUnit:RegisterEvent('spell0_13141', 1, 1)
end
if choix_sorts_13141 == 1 then
pUnit:RegisterEvent('spell1_13141', 1, 1)
end
end

function mob13141_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13141', math.random(1500, 3000), 1)
end

function mob13141_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13141_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13141_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13141, 1, 'mob13141_Action')
RegisterUnitEvent(13141, 2, 'mob13141_Leave')
RegisterUnitEvent(13141, 3, 'mob13141_Kill')
RegisterUnitEvent(13141, 4, 'mob13141_Die')
